package com.sc.nft.enums;

import lombok.Getter;

@Getter
public enum BankBindNameEnum {

    BOC("BOC", "中国银行","http://thap.bee360.com.cn/scnft%2Fdefault%2F%E9%93%B6%E8%A1%8C-%E4%B8%AD%E5%9B%BD%E9%93%B6%E8%A1%8C.png"),
    CCB("CCB", "中国建设银行","http://thap.bee360.com.cn/scnft%2Fdefault%2F%E5%BB%BA%E8%AE%BE%E9%93%B6%E8%A1%8C.png"),
    COMM("COMM", "交通银行","http://thap.bee360.com.cn/scnft%2Fdefault%2Fjiaotong.png"),
    CEB("CEB", "中国光大银行","http://thap.bee360.com.cn/scnft%2Fdefault%2F%E5%85%89%E5%A4%A7%E9%93%B6%E8%A1%8C-2.png"),
    CMB("CMB", "招商银行","https://apimg.alipay.com/combo.png?d=cashier&t=CMB_s"),
    PSBC("PSBC", "中国邮政储蓄银行","http://thap.bee360.com.cn/scnft%2Fdefault%2F%E9%82%AE%E6%94%BF%E9%93%B6%E8%A1%8C.png"),
    CMBC("CMBC", "中国民生银行","http://thap.bee360.com.cn/scnft%2Fdefault%2F%E6%B0%91%E7%94%9F%E9%93%B6%E8%A1%8C.png"),
    CITIC("CITIC", "中信银行","http://thap.bee360.com.cn/scnft%2Fdefault%2F%E4%B8%AD%E4%BF%A1%E9%93%B6%E8%A1%8C.png"),
    SPABANK("SPABANK", "平安银行","http://thap.bee360.com.cn/scnft%2Fdefault%2F%E5%B9%B3%E5%AE%89%E9%93%B6%E8%A1%8C.png"),
    EGBANK("EGBANK", "恒丰银行","http://thap.bee360.com.cn/scnft%2Fdefault%2F%E6%81%92%E4%B8%B0%E9%93%B6%E8%A1%8C.png"),
    SHBANK("SHBANK", "上海银行","http://thap.bee360.com.cn/scnft%2Fdefault%2F%E4%B8%8A%E6%B5%B7%E9%93%B6%E8%A1%8C.png"),
    HZCB("HZCB", "杭州银行","http://thap.bee360.com.cn/scnft%2Fdefault%2F%E6%9D%AD%E5%B7%9E%E9%93%B6%E8%A1%8C.png"),
    SPDB("SPDB", "浦发银行","http://thap.bee360.com.cn/scnft%2Fdefault%2F%E6%B5%A6%E5%8F%91%E9%93%B6%E8%A1%8C.png"),
    ;


    private String code;
    private String name;
    private String icon;


    BankBindNameEnum(String code, String name, String icon) {
        this.code = code;
        this.name = name;
        this.icon = icon;
    }

    public static BankBindNameEnum getName(String code) {
        BankBindNameEnum[] values = values();
        for (BankBindNameEnum v : values) {
            if (v.getCode().equals(code)) {
                return v;
            }
        }
        return null;
    }

}
